package com.pkk.penguin.frame.know.java.designpatterns.expression;

import org.junit.Test;
import org.springframework.expression.spel.standard.SpelExpression;
import org.springframework.expression.spel.standard.SpelExpressionParser;

/**
 * @description: 解释器模式测试
 * @author: peikunkun
 * @create: 2020-07-13 15:37
 **/
public class ExpressionTest {

  @Test
  public void Administrator_11_20200713153758() {
    System.out.println("欢迎使用单元测试方法【Administrator_11()_20200713153758】");
    System.out.println("此方法测试描述：【】");
    final SpelExpressionParser spelExpressionParser = new SpelExpressionParser();
    final SpelExpression sadsadadsa = spelExpressionParser.parseRaw("100*10");
    final Object value = sadsadadsa.getValue();
    System.out.println(value);
  }


}
